package com.example.library.model;

import java.util.Date;

public class ReservationHistory {
    public static final String TYPE_HALL_SEAT = "大厅座位";
    public static final String TYPE_SINGLE_ROOM = "单人研修室";
    public static final String TYPE_GROUP_ROOM = "小组讨论室";

    private String seatNumber;      // 座位/房间号
    private String type;            // 预约类型（大厅座位/单人研修室/小组讨论室）
    private String status;          // 预约状态（已预约/已取消）
    private long timestamp;         // 预约时间戳
    private String userId;          // 用户ID

    public ReservationHistory(String seatNumber, String type, String status, String userId) {
        this.seatNumber = seatNumber;
        this.type = type;
        this.status = status;
        this.timestamp = new Date().getTime();
        this.userId = userId;
    }

    public String getSeatNumber() {
        return seatNumber;
    }

    public String getType() {
        return type;
    }

    public String getStatus() {
        return status;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public String getUserId() {
        return userId;
    }

    public void setStatus(String status) {
        this.status = status;
    }
} 